#include "stm32f10x.h"                  // Device header
#include "oled.h"
#include "Countersensor.h"
#include "Encoder.h"
#include "Timer.h"

extern uint16_t Num;

int main(int argc, char *argv[])
{	
	OLED_Init();
	OLED_ShowString(1, 1, "Cnt:");
	
	Timer_Init();


	while(1)
	{

		OLED_ShowNum(1,5,Num,5);
		OLED_ShowNum(2,5,TIM_GetCounter(TIM2),5);
	}
	
	return 1;
}

